<div id="search-results">
<?php if ($listings):?>

<pre><?php //print_r($listings); ?></pre>

<?php foreach ($listings as $listing):?>
<div class="result-box">
<h3><?php echo anchor('job/view/'.$listing['post_id'],$listing['title'],'class="title"');?></h3>
<p class="desc"><?php echo $listing['description'];?></p>
Posted by <?php echo anchor('company/view/'.$listing['company_id'],$listing['name'], 'class="author"'); ?> | 
<?php echo date("M d, Y",strtotime($listing['post_date'])); ?><br />
Applications due by 
<?php echo date("M d, Y g:i:sA",strtotime($listing['due_date'])); ?>
</div>




<?php endforeach; else:?>
<h3>No listings found</h3>
<p>Please revise your search.</p>
<?php endif;?>

</div>